import sys
import os
from PySide6.QtWidgets import *
from PySide6.QtGui import *
from PySide6.QtCore import *

class Demo(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.parent = parent
        layout = QGridLayout()              
        layout.addWidget(QLabel('Label 0,0'),0,0)        
        layout.addWidget(QLabel('Label 0,1'),0,1)
        layout.addWidget(QLabel('Label 0,2'),0,2)
        layout.addWidget(QLabel('Label 1,0(2Rows)'),1,0,2,1)
        layout.addWidget(QLabel('Label 1,1'),1,1)
        layout.addWidget(QLabel('Label 1,2'),1,2)
        layout.addWidget(QLabel('Label 2,0(2Columns)'),2,0,1,2)
        layout.addWidget(QLabel('Label 2,2'),2,2)        

        self.setLayout(layout) 

def runDemo(parent):
    wigdet =  Demo(parent)
    return wigdet